#include "files_arranger.h"


files_arranger::files_arranger(QObject *parent) :
    QObject(parent)
{
   dir.setPath(RECORD_BACKUP_DIR);
   dir.setSorting(QDir::Time);
   QStringList filelist=dir.entryList();
   int size=filelist.size();
   if(size>100) {
       QFile file;
       for(int i=50;i<size;i++)
       {
         file.setFileName(RECORD_BACKUP_DIR +filelist.at(i));
         file.remove();
       }

   }
}
